/**
 * @author Rudy Kaplan Depena (The University of Texas at Austin)
 */
package com.utaustin.mirankerlab.ultrawrap.compiler.expressionTree.sparql;

/** The Join of two Operands */
public class Join extends Operator {

	/**
	 * Default Constructor
	 */
	public Join() { super(); }
	
	/**
	 * String representation of LeftJoin
	 * @param String
	 */
	public String toString(){
		return "Join (" + this.getLeftChild()+  ", " + this.getRightChild() + ")";
	}
	
	/**
	 * Generate SQL Node
	 * @return sql representation of node
	 */
	public String generateSql(boolean calledByLeftJoin){
		return this.getLeftChild().generateSql(true) + " JOIN " 
			   + this.getRightChild().generateSql(true) + "(1=1)";
	}

}